// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource';//必须要引入vueResource才能进行写
Vue.config.productionTip = false
import store from './vuex/Store'

Vue.use(VueResource)
// 引入自定义MIXIN
import MTMixin  from './mixin/MTMixin'
//注册全局MIXIN
Vue.mixin(MTMixin);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  //store 的引入和router相同，不能直接ｕｓｅ,没有效果
  store,
  components: { App },
  template: '<App/>'
})
